import java.util.Scanner;
public class Test1 {
    public static void main(String[] args)  {
		operate oper=new operate();
		System.out.println("��������:");
		Scanner sc = new Scanner(System.in);
        String m = sc.next();
		System.out.println("������Ҫ��λ��λ��:");
		int w=sc.nextInt();
		String serct = oper.encrypt(m,w);
        System.out.println(serct);
	}
}
class operate {
    String encrypt(String m,int w) {   
        char[] c = m.toCharArray();
        int n = c.length;
        for (int i = 0; i < n; i++) {
            if(c[i]>122||c[i]<65||(c[i]>90&&c[i]<97)){
               return "false";
            }
            int mima = (c[i] - 'a' + w) % 26 + 'a';        
            c[i] = (char) mima;
        }
        return new String(c);                                      
    }
}


